using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FEL.DIC;
using FEL.META;
using System.Text;
using System.Collections.Generic;
using System.Web.Services;
using System.Reflection;

public partial class DIC_DIC_MES : PaginaBaseKCG
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Page_Load(sender, e);
        cargarBotones();
    }

    private void cargarBotones()
    {
        btnProceso.Text = GetLocalResourceObject("Btn_Dic_Mes_ProcesoRecursoKCG.Text").ToString();
        btnProceso.ToolTip = GetLocalResourceObject("Btn_Dic_Mes_ProcesoRecursoKCG.ToolTip").ToString();
    }

    protected override CheckBox CbInsertarMemoria
    {
        get { return null; }
    }

    protected override Type TipoObjeto
    {
        get { return typeof(global::Dic_Mes); }
    }

    protected override GridView Gv
    {
        get { return gvdic_mes; }
    }

    protected override FormView Fv
    {
        get { return fvdic_mes; }
    }

    protected override ObjectDataSource OdsGv
    {
        get { return odsgvdic_mes; }
    }

    protected override ObjectDataSource OdsDv
    {
        get { return odsfvdic_mes; }
    }

    protected override Button BResponderZoom
    {
        get { return Seleccionar; }
    }

    protected override Button BRegreso
    {
        get { return Atras; }
    }


    protected override Koala.KoalaWebControls.KFiltro KftFiltro
    {
        get { return kftFiltro; }
    }
    protected override string Contenedor
    {
        get { return "DIC_MES"; }
    }

    protected void nav_Siguiente(object sender, EventArgs e)
    {
        Gv_SelectedIndexChanged(sender, e);
    }


    protected void btnProceso_Click(object sender, EventArgs e)
    {
        Scope s = (Scope)Session["Scope"];

        try
        {
            BO_META.PAR_MANTENIMIENTO_MESES(s);

            string mensaje = HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ10RecursoKCG.Text").ToString();
            AsignarMensaje(mensaje, _clrBien);

        }
        catch
        {
            string mensaje = HttpContext.GetLocalResourceObject("~/ITCG.master", "MSJ14RecursoKCG.Text").ToString();
            AsignarMensaje(mensaje, _clrMal);

        }
    }


}
